eloquent get only some columns

102

eloquent get only some columns -

Table::select('name','surname')->where('id', 1)->get();

Comments

Submit
0 Comments